/*    */ package com.jcrj.util;
/*    */ 
/*    */ import java.io.IOException;
/*    */ import java.util.Properties;
/*    */ 
/*    */ public class DBConfig
/*    */ {
/*  8 */   private Properties pro = new Properties();
/*  9 */   private static DBConfig congfig = null;
/* 10 */   private final String path = "jdbc.properties";
/*    */ 
/*    */   private DBConfig() {
/* 13 */     load();
/*    */   }
/*    */ 
/*    */   public static synchronized DBConfig getInstance() {
/* 17 */     if (congfig == null) {
/* 18 */       congfig = new DBConfig();
/*    */     }
/* 20 */     return congfig;
/*    */   }
/*    */ 
/*    */   private void load() {
/*    */     try {
/* 25 */       this.pro.load(getClass().getClassLoader().getResourceAsStream("jdbc.properties"));
/*    */     } catch (IOException e) {
/* 27 */       e.printStackTrace();
/*    */     }
/*    */   }
/*    */ 
/*    */   public String getProperty(String key) {
/* 32 */     return this.pro.getProperty(key);
/*    */   }
/*    */ }

/* Location:           /Volumes/work/oa/WEB-INF/classes/
 * Qualified Name:     com.jcrj.util.DBConfig
 * JD-Core Version:    0.6.0
 */